]> dgit.raspbian.org Git - gnome-shell.git/commit
appDisplay: Move from instanceof-testing to polymorphic duck typing
authorJasper St. Pierre <jstpierre@mecheye.net>
Mon, 16 Dec 2013 03:18:17 +0000 (22:18 -0500)
committerJasper St. Pierre <jstpierre@mecheye.net>
Mon, 13 Jan 2014 22:28:32 +0000 (17:28 -0500)
commit8fe7f923ecbc6f21ddefb68646a39fded427b96a
tree664a61f5d5c9e1ea65a93175e23824fdd59541e7
parent933f38390ba1512aa87c91bd52e9729d2524b6c0
appDisplay: Move from instanceof-testing to polymorphic duck typing

Instead of having _compareItems, _getItemId, etc. on the view to
pull out info about items, use the AppIcon / FolderIcon items we
create as a place to track this additional info. We now require
that these items have a '.id' property for deduplication, and a
'.name' property to sort by.

https://bugzilla.gnome.org/show_bug.cgi?id=722117
js/ui/appDisplay.js